<template>
  <div class="app-container">
    <Breadcrumb :breadList="props.menu" />
    <div class="app-search public-attr" v-if="$slots.content">
      <slot name="content"></slot>
    </div>
    <div class="public-attr" v-if="$slots.default">
      <slot></slot>
    </div>
  </div>
</template>

<script setup>
import Breadcrumb from '@/components/nav/Breadcrumb.vue'
const props = defineProps({
  menu: {
    type: Array,
    default: () => []
  }
})
</script>

<style lang="scss" scoped>
.app-container{
  background-color: #f5f5f5;
  height: calc(100vh - 36px);
  padding: 18px;
}
.app-search {
  padding: 14px 30px 14px 0;
  margin-bottom: 16px;
}
.public-attr {
  background-color: #fff;
  border-radius: 6px;
}
</style>